package com.demo.service.impl;

import com.demo.dao.UserDao;
import com.demo.dao.impl.UserDaoImpl;
import com.demo.pojo.User;
import com.demo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

//@Service("userService")
public class UserServiceImpl implements UserService {


//    @Autowired
    private UserDao dao;
    private String s1;
    private String s2;

    public UserServiceImpl(UserDao dao,String s1) {
        this.dao = dao;
        this.s1 = s1;
    }

    public UserServiceImpl(String s2,UserDao dao) {

    }

    public UserServiceImpl(UserDao dao){
        this.dao = dao;
    }

//    @Override
    public void save(User user) {
        dao.saveUser(user);
    }

    public void setDao(UserDaoImpl dao) {
    }


}
